package center.leon.zoocloudsentinel.service.impl;

import center.leon.zoocloudsentinel.service.HelloService;
import center.leon.zoocommon.common.Response;
import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.stereotype.Service;

/**
 * @author : Leon on XXM Mac
 * @since : create in 2024/8/19 22:03
 */
@Service
public class HelloServiceImpl implements HelloService {

    @Override
    @SentinelResource(value = "helloWorld")
    public Response<String> helloWorld() throws BlockException {
        return Response.success("Hello World");
    }
}
